home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
COMMUNIC
/
COMMUTIL
/
2258.ZIP
/
EZLAST35.ZIP
/
EAZLAST3.DOC
< prev
next >
Wrap
Text File
|
1990-04-20
|
10KB
|
229 lines
EAZLAST3.EXE V3.56
------------------
Creates a file containing last caller's name and time for Host use
------------------------------------------------------------------
For use with EaziLink V3 or EaziHost
19th April 1990
Disclaimer
----------
This program is being put into the Public Domain and may be freely
distributed on the understanding that no responsibility can be
accepted for any problems arising from its use. To the best of our
knowledge, it is 'Bug free' and serves its intended purpose.
No charge, other than a nominal charge for duplication and postage,
may be made for it and it should only be supplied as a single ARC, ZIP
or PAK file called EAZLAST3.ARC, EAZLAST3.ZIP or EAZLAST3.PAK,
containing the EAZLAST3.EXE and EAZLAST3.DOC files.
Overview
--------
EazLast3 is for use with EaziLink V3 Host mode or EaziHost V1 and was
created so that the name of the last caller can be displayed whenever
a new caller logs on. The program does this by reading the HOST.LOG
file (created and updated automatically by Eazilink/EaziHost, if
configured to do so) and finding details of the last caller.
The name of the last caller, time of the call and, optionally,
duration and total number of callers to the BB, are then written to a
file called 'LASTCALL.TXT'. This file may be displayed by
EazIlink/Host in a number of ways, as described below.
Using EAZLAST3
--------------
EazLast3 must either be placed in a directory specified with the PATH
command, or the full path to EAZLAST3.EXE must be specified when the
command is used.
Optionally, a special configuration file, called EAZLAST3.CNF may be
used to provide custom text. See 'Configuration File' below, for
details.
The syntax for EazLast3 is:-
EAZLAST3 <eazilinkmaindir> <outfiledir> (/N) (/T)
<eazilinkmaindir> is the name of the EaziLink Main directory, in which
HOST.LOG should be found.
<outfiledir> is the name of the directory into which the
'LASTCALL.TXT' file is to be written.
/N is optional and will cause the duration of the call NOT
to be included if the default messages are being used.
Note: If a custom message is provided in EAZLAST3.CNF,
this option is ignored and only those variables included
in the CNF file will be included.
/T is optional and will result in the number of callers in
HOST.LOG being totalled. This option should only be used
once, to obtain a starting figure for the number of
callers if this feature is being used. See
'Configuration file' below.
NOTE: /T and /N may NOT be used at the same time.
Example:
EAZLAST3 \EAZILINK\ \EAZILINK\HOSTMAIN
Note that if the trailing backslash is omitted from the end of either
directory name, EazLast3 will add it.
The above command should be used in the RECYCLE.BAT file which
EaziLink automatically runs if the file exists.
LASTCALL.TXT can be appended to the end of the LOGO.HST file, so that
the details of the previous caller are displayed even before the new
caller logs on, or, alternatively, may be renamed to NOTICE.HST, or
appended to an existing NOTICE.HST file. An example of this would be
where you wish to display the name of the last caller and a 'Quote for
the day', generated by a program such as QUOTER.
Note: The HOST.LOG generation option in EaziLink's Host Configuration
(or EaziHost Configuration) MUST be set to ON if EazLast3 is to be
used.
Examples of entries in RECYCLE.BAT
----------------------------------
Example 2 is the best solution in most cases.
1. A simple example.
ECHO OFF
\EAZILINK\\EAZLAST3 \EAZILINK\ \EAZILINK\HOSTMAIN
COPY \EAZILINK\HOSTMAIN\LASTCALL.TXT \EAZILINK\HOSTMAIN\NOTICE.HST
This will copy the LASTCALL.TXT file to a file called NOTICE.HST in
\EAZILINK\HOSTMAIN directory. Note that the full pathname of the
command is used to ensure that the program file is found.
2. An example appending to LOGO.HST
ECHO OFF
EAZLAST3 \EAZIHOST\ \EAZIHOST\HOSTMAIN\
COPY \EAZIHOST\HOSTMAIN\LOGO.HLD+\EAZIHOST\HOSTMAIN\LASTCALL.TXT
\EAZIHOST\LOGO.HST
(Note The last two lines should all be on the same line, separated by
a space)
Note that in this case, the standard LOGO.HST file should be renamed
to LOGO.HLD before EazLast3 is used for the first time. The COPY
command copies and appends the two files, LOGO.HLD and LASTCALL.TXT,
to a file called LOGO.HST. This happens every time RECYCLE.BAT is
run, otherwise the last caller's name would be appended to the end of
previous caller each time.
Configuration File - EAZLAST3.CNF
---------------------------------
A configuration file may be used. It is not vital, but if provided,
may serve two purposes.
1. Allows the text which is to be displayed to be specified instead of
the default message provided by the program.
2. Keeps a record of the total number of callers. This is optional,
but, if present, is updated by EazLast3 after each new caller.
Important:- The configuration file must be called EAZLAST3.CNF and
must be located in the <outfiledir> described above. If this file is
found by EazLast3, then the contents will be read and used, otherwise
the default layout provided by EazLast3 will be used.
EAZLAST3.CNF may be created with any text editor and may be up to 10
lines long, although generally two or three lines will be more than
enough. EaziLink pseudo ANSI codes may be included in the CNF file.
Note: If EaziLink pseudo codes are to be included, the resulting
LASTCALL.TXT file must not be displayed before the user has given
their name and password. This includes the LOGO.HST file displayed at
the very start of a call.
Five special variables may be included in the file and, if found, the
values they contain will be substituted. Any or all of the variables
may be omitted, or used more than once. The five variables are :-
%first - The first name of the previous caller
%last - The last name of the previous caller
%time - The time they logged on
%duration - The length of time they were on line, in minutes.
%callernum - The number of calls made to the BB. Used in
conjunction with 'NC:'. See below.
The supplied EAZLAST3.CNF file is included as an example of its use
and may be omitted if not required, or modified to suit your
requirements.
If the last line of the EAZLAST3.CNF file starts with 'NC:', followed
by a number in the range 0-65535, EazLast3 will read this number and
increment it by one after every new caller. Normally, this would be
set to zero when a new BB is set up. If this line is not present, the
number of callers will not be included in the file.
NOTE: if the '%callernum' feature is being used, the 'NC:' entry MUST
be the the last line of the EAZLAST3.CNF file.
Note: EazLast3 will also add the name of the last caller and the time
they called to the 'NC:' line. This is used for verification purposes
and to stop the counter being updated when local log-ins are made.
If you want to obtain an initial total of previous callers from the
HOST.LOG file, use EazLast3 with the /T option, to obtain a total.
EazLast3 will write the result to the EAZFILE3.CNF file automatically.
History
-------
3.00 10/11/89 - Beta release
3.01 11/11/89 - First release.
- added optional command line switch (/N) to turn off
display of 'time online', if not required by SysOp.
- Date of last caller is no longer included, as this
could be incorrect in certain circumstances.
- Bug fix to documentation!
3.02 21/11/89 - Fixed bug which caused a hang up with HOST.LOG files
smaller than 2K.
- provided optional facility to use a configuration
file to specify the text and details to be displayed.
3.53 28/12/89 - Works with either EaziLink Host mode, or EaziHost.
- Removed surplus line feed at end of output file,
which caused an excessive gap at end when displayed.
3.54 05/02/90 - Included the (optional) facility to show the total
number of callers to the BB. Provision also made to
obtain a starting number from HOST.LOG.
3.55 04/04/90 - Minor changes, largely as a result of library
changes.
3.56 19/04/90 - Changed procedure for displaying the number of
callers, to make it more flexible. The text may now
be specified in the CNF file as a variable. A
resultant change is that instead of the number of
lines in the CNF file being unlimited, it is now
restricted to 10 lines maximum, which should be more
than enough.
David Foster
H.L.C. Services
High Leys
Crook
Kendal
Cumbria
LA8 8LF
END